<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>layout 管理界面大布局示例 - Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="//unpkg.com/layui@2.10.3/dist/css/layui.css" rel="stylesheet">
</head>

<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">layout demo</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>
                <li class="layui-nav-item layui-hide-xs"><a href="javascript:;" class="get">退出登陆</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="javascript:;" class="zhu">注销</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="javascript:;">nav 3</a></li>
                <li class="layui-nav-item">
                    <a href="javascript:;">nav groups</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">menu 11</a></dd>
                        <dd><a href="javascript:;">menu 22</a></dd>
                        <dd><a href="javascript:;">menu 33</a></dd>
                    </dl>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                    <a href="javascript:;">
                    </a>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="test_table" href="javascript:;">表格</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">数据图</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" class="Echarts">柱形图</a></dd>
                            <dd><a href="javascript:;">扇形图</a></dd>
                            <dd><a href="javascript:;">折线图</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="javascript:;">click menu item</a></li>
                    <li class="layui-nav-item"><a href="javascript:;">the links</a></li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                <blockquote class="layui-elem-quote layui-text">
                    Layui 框体布局内容主体区域
                </blockquote>
                <div class="layui-card layui-panel">
                    <ul style="text-align: center;" class="master">
                    </ul>
                </div>
                <br><br>
            </div>
        </div>
        <div class="layui-footer">
            <!-- 底部固定区域 -->
            底部固定区域
        </div>
    </div>
    <script src="//unpkg.com/layui@2.10.3/dist/layui.js"></script>
    <script>
        //JS 
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element;
            var layer = layui.layer;
            var util = layui.util;
            var $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                menuLeft: function (othis) { // 左侧菜单事件
                    layer.msg('展开左侧菜单的操作', { icon: 0 });
                },
                menuRight: function () {  // 右侧菜单事件
                    layer.open({
                        type: 1,
                        title: '更多',
                        content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
                        area: ['260px', '100%'],
                        offset: 'rt', // 右上角
                        anim: 'slideLeft', // 从右侧抽屉滑出
                        shadeClose: true,
                        scrollbar: false
                    });
                }
            });
        });
    </script>
    <!-- //JQuery引入 -->
    <script src="https://code.jquery.com/jquery-3.7.1.js"></script>
    <script>
        //首页跳转
        $(".test_table").on("click", () => {
            location.assign("/首页/首页.html")
        })
    </script>
    <script>
        //里面数据
        var name = localStorage.getItem("name")
        var password = localStorage.getItem("password")
        var phone = localStorage.getItem("phone")
        var email = localStorage.getItem("email")
        var img = localStorage.getItem("img")
        $(".master").append(`
          <li style="height: 50px;line-height: 50px;">图片:    <img src="${img}" alt="" style="height: 50px;width:50px;"></li>
        <li style="height: 50px;line-height: 50px;">名字:${name}</li>
        <li style="height: 50px;line-height: 50px;">密码:${password}</li>
        <li style="height: 50px;line-height: 50px;">手机号:${phone}</li>
        <li style="height: 50px;line-height: 50px;">邮箱:${email}</li>
        `)
    </script>3
    <script>
        //图标跳转
        $(".Echarts").on("click", () => {
            location.assign("/表格/柱形图.html")
        })
    </script>
    <script>
        //退出登录
        $(".get").on("click", () => {
            location.assign("/登录/登录.html")
        })
    </script>
    <script>
        //注销
        $(".zhu").on("click", () => {

            localStorage.clear()
        })
    </script>
</body>

</html>